package com.tencreat.domain.mall;

import com.baomidou.mybatisplus.annotation.*;
import com.tencreat.common.annotation.Excel;
import com.tencreat.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;


/**
 * 商品规格参数对象 mall_goods_norms
 *
 * @author tencreat
 * @date 2022-01-08
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
@TableName("mall_goods_norms")
public class MallGoodsNorms extends BaseEntity<MallGoodsNorms> {
    private static final long serialVersionUID = 1L;


    /** $column.columnComment */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private Long id;


    /** 商品表的商品ID */
    @Excel(name = "商品表的商品ID")
    @ApiModelProperty(value= "商品表的商品ID")
    @TableField("`goods_id`")
    private Long goodsId;


    /** 商品参数 */
    @Excel(name = "商品参数")
    @ApiModelProperty(value= "商品参数")
    @TableField("`attribute`")
    private String attribute;


    /** 供应价 */
    @Excel(name = "供应价/原价")
    @ApiModelProperty(value= "供应价/原价")
    @TableField("`supply_price`")
    private BigDecimal supplyPrice;

    /** 专柜价格 */
    @Excel(name = "售价")
    @ApiModelProperty(value= "零售价")
    @TableField("`retail_price`")
    private BigDecimal retailPrice;

    /** 商品预览图 */
    @Excel(name = "商品预览图")
    @ApiModelProperty(value= "商品预览图")
    @TableField("`pic_url`")
    private String picUrl;


    /** 库存数量 */
    @Excel(name = "库存数量")
    @ApiModelProperty(value= "库存数量")
    @TableField("`inventory`")
    private Long inventory;

    @Excel(name = "商品单位，例如件、盒")
    @ApiModelProperty(value= "商品单位，例如件、盒")
    @TableField("`unit`")
    private String unit;



    /** 删除标志（0代表存在 2代表删除） */
    @TableLogic
    @TableField("`del_flag`")
    private String delFlag;


    /** 排序 */
    @Excel(name = "排序")
    @ApiModelProperty(value= "排序")
    @TableField("`sort_order`")
    private Integer sortOrder;


    /** 用户ID */
    @Excel(name = "用户ID")
    @ApiModelProperty(value= "用户ID")
    @TableField("`user_id`")
    private Long userId;


    @ApiModelProperty(value= "抵扣金额")
    @TableField("`deduct_price`")
    private BigDecimal deductPrice;

    @ApiModelProperty(value = "套餐中商品名")
    @TableField("`goods_name`")
    private String goodsName;

    @ApiModelProperty(value = "套餐中商品数量")
    @TableField("`goods_quantity`")
    private Integer goodsQuantity;

    @ApiModelProperty(value = "规格类型 店铺| 商城")
    @TableField("`goods_type`")
    private String goodsType;

    @ApiModelProperty(value = "供应链商品详情规格id")
    @TableField("`sku_id`")
    private String skuId;

    @ApiModelProperty(value = "租户")
    private String tenantId;


    @Excel(name = "店铺商品单位，例如件、盒")
    @ApiModelProperty(value= "店铺商品单位，例如件、盒")
    @TableField("`store_unit`")
    private String storeUnit;

}
